/*************************************************************************
	> File Name: 7.const_method.cpp
	> Author: huguang
	> Mail: hug@haizeix.com
	> Created Time: 
 ************************************************************************/

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <queue>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <set>
#include <vector>
using namespace std;

#define BEGINS(x) namespace x {
#define ENDS(x) }

BEGINS(test1)

class A {
public :
    A() { x = 23800; }
    void say() const {
        x = 30000;
        cout << x << endl;
    }
    mutable int x;
};

void main() {
    const A a;
    a.say();
    return ;
}

ENDS(test1)

int main() {
    test1::main();    
    return 0;
}
